#include "AnimationManager.h"

void AnimationManager::Attach(Animation * ani)
{
	animations.push_back(ani);
}
void AnimationManager::Detach(Animation * ani)
{
	for(unsigned int i = 0; i < animations.size(); i++)
	{
		if(animations[i] == ani)
		{
			animations.erase(animations.begin() + i);
			--i;
		}
	}
}
void AnimationManager::Clear()
{
	animations.clear();
}
AnimationManager* AnimationManager::GetInstance()
{
	static AnimationManager instance;
	return &instance;
}